<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<c:url value="/goodbuy.css"/>" rel="stylesheet" type="text/css" media="screen" />
<title>Rendimento</title>
</head>
<body>
	
<fieldset><legend>Rendimento</legend> 
<table>
	<thead>
		<tr>
			<th>Combustivel</th>
			<th>Km</th>
			<th>Litros</th>
			<th>Total</th>
			<th>Consumo</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${itemList}" var="item" >
			<tr>
				<td>${item.combustivel }</td>
				<td>${item.km }</td>
				<td>${item.litros }</td>
				<td><fmt:formatNumber type="currency" value="${item.total }" /></td>
				<td><fmt:formatNumber type="number" value="${item.consumo }" minFractionDigits="3" /></td>
			</tr>
		</c:forEach>
	</tbody>
</table>
</fieldset>	
</body>
</html>